/**
 * @description:
 * @param {string} url
 * @param {string} filename
 * @return {*}
 */
export function downloadByATag(url: string, filename: string) {
  const link = document.createElement('a');
  link.href = url;
  link.download = filename;
  document.body.appendChild(link);
  link.click();
  document.body.removeChild(link);
}
